home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ IE Options 1.xpl < prev    next >
Text File  |  2004-03-01  |  2KB  |  72 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="6"
  3. "COUNT"="3"
  4. "UIPATH 1"="Internet\Internet Explorer\Updates"
  5. "UIPATH 2"="Virtual Paranoia\Phone Home"
  6. "NAME"="IE Update & Install Options"
  7. "LANGUAGE"="VBScript"
  8. "VERSION"="1.65"
  9. "TEXT 1"="Check for Updates on microsoft.com"
  10. "TEXT 2"="Enable Install-on-demand for Internet Explorer"
  11. "TEXT 3"="Enable Install-on-demand for third parties"
  12. "DESCRIPTION 1"="Option #1: Allows Internet Explorer to periodically check for updates (usually once a month). If a new version of Internet Explorer is available, it will invite you to download it."
  13. "DESCRIPTION 2"="Options #2 & #3: By enabling Install-on-demand Internet Explorer will ask you if you would like to install extra components if they are needed to view a web page. Enabling Option #2 will allow Internet Explorer to ask you about official Microsoft-approved add-ons for Internet Explorer, while Option #3 will ask you if you want to install third-party components, such as Macromedia's Shockwave and My Comet Cursor. NOTE: Option 3 is for Internet Explorer 6.0 only."
  14. "AUTHOR"="Xteq Systems"
  15. "CONTACTURL"="http://www.xteq.com"
  16. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  17. "COMMENT 1"="Internet Explorer 6.0 options added by Neil Turner."
  18.  
  19. sP1="HKLM\SOFTWARE\Policies\Microsoft\Internet Explorer\Infodelivery\Restrictions\"
  20. sV1="NoUpdateCheck"
  21. sV2="NoJITSetup"
  22. sV3="NoWebJITSetup"
  23. sP2="HKLM\SOFTWARE\Microsoft\Internet Explorer\Main\"
  24. sV4="Enable_Disk_Cache"
  25. sV5="IEWatsonDisable"
  26.  
  27. SUB Plugin_Initialize  
  28.  i=RegReadValue(sP1 & sV1)
  29.  if i<>1 then SetUIElement 1,true
  30.  
  31.  i=RegReadValue(sP1 & sV2)
  32.  if i<>1 then SetUIElement 2,true
  33.  
  34.  i=RegReadValue(sP1 & sV3)
  35.  if i<>1 then SetUIElement 3,true
  36.  
  37. ' i=RegReadValue(sP2 & sV4)
  38. ' if IsEmpty(i) or i="yes" then SetUIElement 4,true
  39.  
  40. END SUB
  41.  
  42. SUB Plugin_Apply(ElementIndex,ElementSubIndex)
  43.  Call Wrt(1,sP1 & sV1)
  44.  Call Wrt(2,sP1 & sV2)
  45.  Call Wrt(3,sP1 & sV3)
  46.  
  47. ' b=GetUIElement(4)
  48. ' if b=true then
  49. '  Call RegWriteValue(sP2 & sV4,"yes",1)
  50. ' else
  51. '  Call RegWriteValue(sP2 & sV4,"no",1)
  52. ' end if
  53.  
  54. ' Call Restart()
  55. END SUB
  56.  
  57. Sub Wrt(ITM,VAL)
  58.  b=GetUIElement(ITM)
  59.  if b=false then
  60.     Call RegWriteValue(VAL,1,2)
  61.  else
  62.     s=RegReadValue(VAl)
  63.     if IsEmpty(s)=false then
  64.        Call RegDeleteValue(VAL)
  65.     end if
  66.  end if
  67. end sub
  68.  
  69. SUB Plugin_Terminate
  70. END SUB
  71.  
  72.